This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
I have a piece of script in an agent which takes a date in a document and add 1 or 3 days to it.
Compare it to today.
Set datum = New NotesDateTime(doc.logdatum(0))
If Weekday(Today) = 2 Then
Call datum.Adjustday(3)
Else
Call datum.Adjustday(1)
End If
If nu.Dateonly > datum.Dateonly Then
<etc>
In the last 2 days I have a strange problem with it. The date set in logdatum is 31-01-2012. Add 1 day and it says 01-02-2012.
The date of today is correct and says 31-01-2012.
But if I compare the date of today (nu) with the logdate (datum) then it says that the if statements returns TRUE but should be FALSE.
Can anyone explain this to me?
Regards,
Peter
Feedback number WEBB8R2N6V created by ~Lex Bubfooplopetsi on 01/31/2012
Status: Closed
Comments: Changed the comparison to:
If DateValue(nu.Dateonly) > DateValue(datum.Dateonly) Then